package com.hubei.car.swaggerParam;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 资讯查询条件
 * @author luokangtao
 * @create 2019-08-09 16:11
 */
@ApiModel("资讯查询条件")
@Data
@Accessors(chain = true)
public class MsNewsQueryParam {

    @ApiModelProperty(value = "当前页", example = "1", required = true)
    @NotNull(message = "当前页不能为空")
    private Long current;

    @ApiModelProperty(value = "当前页显示多少条数据", example = "10", required = true)
    @NotNull(message = "当前页显示多少条数据不能为空")
    private Long size;

    @ApiModelProperty(value = "资讯分类id", example = "1")
    private Long tid;

    @ApiModelProperty(value = "资讯id", example = "1")
    private Long id;

    @ApiModelProperty(value="是否推荐", example = "true")
    private Boolean isrecommend;

    @ApiModelProperty(value="是否置顶", example = "false")
    private Boolean istop;

    @ApiModelProperty(value="资讯内容", example = "资讯内容")
    private String contents;

}
